#!/bin/sh
#execute all script in specified directory
#变量获取
#指定的目录
MYSQL_PATH=$1
u_name=$2
u_pass=$3


for file in ${MYSQL_PATH}/* 
do
mysql -u${u_name} -p${u_pass} <$file 
echo "command:"$file
done